package cn.uai.activiti7.listener;

import org.activiti.engine.delegate.DelegateExecution;
import org.activiti.engine.delegate.ExecutionListener;

import java.util.Map;
import java.util.Set;

/**
 * @desc 全局节点连线监听器
 * @author uai
 * @version 1.0
 * @since 2025年06月02日 11:56
 */
public class GlobalNodeConnectionListener implements ExecutionListener {

    private final Set<String> ACTIVITY_TYPE = Set.of("userTask");

    @Override
    public void notify(DelegateExecution execution) {
        String eventName = execution.getEventName();
        Map<String, Object> variables = execution.getVariables();
        System.out.println("全局监听事件触发，Event Name：" + eventName);
    }
}
